#!/bin/bash
###############################################################################
##@Author Nicholas.Zhang
##@Date 2011-04-25
###############################################################################
BASE_BIN_DIR=`dirname $0`
cd $BASE_BIN_DIR
svn co http://27.115.90.131:8888/svn/repos/template/trunk/ template
cd template
mvn clean install -Dmaven.test.skip -Denv=release
cp ~/app/template/template-deploy.jar ~/backup/
cp ~/app/template/template-web.war ~/backup/
cd template-deploy
cp target/template-deploy.jar ~/app/template/
cp target/deploy/template-web.war ~/app/template/
cd ../..
rm -rf template
cd ~/app/template/
jar xf template-deploy.jar
chmod 755 -R bin
cd bin
./killws.sh;./startws.sh;
